﻿using MvcContrib.PortableAreas;

namespace nanoCMS.Blog.WebUI {
	public class BlogRegistration : PortableAreaRegistration {
		public override string AreaName
		{
			get { return "Blog"; }
		}

		public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context, IApplicationBus bus) {
			bus.Send(new PortableAreaStartupMessage(AreaName));

			context.MapRoute("BlogDefault", "Blog/{controller}/{action}", new { controller = "BlogAdmin", action = "index" });
			RegisterAreaEmbeddedResources();
		}
	}
}
